package com.renwei.yunlong.base;

import android.app.Activity;
import android.os.Bundle;

import com.renwei.yunlong.YunLongApplication;


/**
 * 基类
 *
 * Created by Administrator on 2017/8/23.
 */

public class BaseActivity extends Activity{
    @Override
    protected void onCreate(Bundle bundle) {
       super.onCreate(bundle);
        ((YunLongApplication) getApplication()).addActivity(this);
    }

    @Override
    protected void onDestroy() {
        super.onDestroy();
        ((YunLongApplication) getApplication()).removeActivity(this);
    }
}
